MathOptimizerProG95Demo Installation Steps

1.  After receiving (downloading, and possibly unzipping) the product shipment, create the directory 
	MathOptimizerProG95Demo and put it in your Mathematica\10.0\AddOns\Applications directory.  
	(Use the corresponding directory for a different version of Mathematica.) Place all product 
	shipment files into the created MathOptimizerProG95Demo directory.	
	
2.  Move the Format.m file out of the MathOptimizerProG95Demo directory up one level into the Applications
	directory.
	
3.  Change the permissions of the MathOptimizerProG95Demo directory to FullControl for Users.  Do this by 
	right-clicking on the directory, going to Properties and the to Security and clicking Edit.  
	Choose Users and click on FullControl.
	
4.  Go to http://www.fortran.com/the-fortran-company-homepage/whats-new/g95-windows-download/
	to download the G95 installer, run the installer and allow it to add to your Environment Variables.
	Do not let it use an exciting MinGW installation.  If you run into a problem with the 
	environment variables,then you can start Mathematica with a DOS batch file that sets them.
	Here is an example batch file, assuming that g95 has been installed in C:\g95.
	
	PATH=c:\g95\bin;%PATH%
	SET G95_LIBRARY_PATH=c:\g95\lib\gcc-lib\i686-pc-mingw32\4.1.2;C:\g95\lib;
	call "c:\Program Files\Wolfram Research\Mathematica\10.0\Mathematica.exe"	
	
5.  After running MathOptimizerPro, several files will be created in its installation directory.  
	Here is a description of all the files:

	callLGO.m - MathOptimizer Professional package

	format.m (in enclosing directory)- Mathematica package for converting Mathematica in Fortran or C

	hostinfo.txt - file providing computer information for license verification process (not used for 
	MathOptimizerPro demo version)

	LGO.o - provided LGO object file, used by G95 to create LGO_G95.exe

	LGO_G95.exe  - generated by G95 by linking LGOMAIN.o, LGOFCT.o and LGO.o

	LGOFCT.for - Fortran objective function and constraints file, generated by callLGO.m

	LGOFCT.o - LGOFCT object file, generated by G95 compiling LGOFCT.Fortran

	LGOMAIN.for - Fortran problem description and driver file, generated by callLGO.m

	LGOMAIN.o - LGOMAIN object file, generated by G95 compiling lgomain.for	

6.  Note that the MathOptimizerPro demo can only solve problems with max. 10 model variables and max. 10 general 
	model constraints. Please contact Janos D. Pinter <janos.d.pinter@gmail.com> if you wish to obtain a 
	commercial or non-profit academic research license.